﻿using System;
using System.Collections.Generic;
using System.Text;

namespace 序列化和反序列化
{
    [Serializable]
    public class peson
    {
        private string _name;
        public string  Name
        {
            get { return _name; }
            set { _name = value; }
        }
        private int _avg;
        public int Avg
        {
            get { return _avg; }
            set { _avg = value; }
        }
        private char _gender;
        public char Gender
        {
            get { return _gender; }
            set { _gender = value; }
        }
        //public peson(string name,int avg,char gender)
        //{
        //    this.Name = name;
        //    this.Avg = avg;
        //    this.Gender = gender;
        //}
    }
}
